<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>简历</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
    <script type="text/javascript" src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
    <!-- 引入bootstrap样式 -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
            crossorigin="anonymous"></script>
</head>
<body>
<!--头部 start-->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="container-fluid">
        <a class="navbar-brand" th:href="@{/}">乐悠悠直聘网</a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown"
                aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" th:href="@{/}">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{jobs}">求职</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{news}">资讯</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{enterprise}">公司</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" th:href="@{school}">校园</a>
                </li>
                <div style="padding-left: 900px">
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button"
                           data-bs-toggle="dropdown" aria-expanded="false" th:text="${session.user}">
                        </a>
                        <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
                            <li><a class="dropdown-item" th:href="@{pwd}">修改密码</a></li>
                            <li><a class="dropdown-item" th:href="@{resume}">我的简历</a></li>
                            <li><a class="dropdown-item" th:href="@{logout}">退出登录</a></li>
                        </ul>
                    </li>
                </div>
            </ul>
        </div>
    </div>
</nav>
<!--头部 end-->

<!--主体 start-->
<div style="width: 850px;padding: 50px 0 0 500px">
    <form class="layui-form" action="/editResume" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">手机号码</label>
            <div class="layui-input-block">
                <input type="text" name="telephone" required lay-verify="required" placeholder="请输入手机号码"
                       autocomplete="off" th:value="${userIn.getTelephone()}" class="layui-input">
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">生日</label>
                <div class="layui-input-block">
                    <input type="date" name="birthday" required lay-verify="required"
                           autocomplete="off" th:value="${userIn.getBirthday()}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-block">
                    <input type="text" name="mail" required lay-verify="required" placeholder="1565453341@qq.com"
                           autocomplete="off" th:value="${userIn.getMail()}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <select name="sex">
                        <option value="0" th:selected="${userIn.getSex()}">男</option>
                        <option value="1" th:selected="${userIn.getSex()}">女</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">当前求职状态</label>
                <div class="layui-input-block">
                    <select name="status">
                        <option value="0" th:selected="${userIn.getStatus()}">离校-随时到岗</option>
                        <option value="1" th:selected="${userIn.getStatus()}">在校-暂不考虑</option>
                        <option value="2" th:selected="${userIn.getStatus()}">在校-考虑机会</option>
                        <option value="3" th:selected="${userIn.getStatus()}">在校-月内到岗</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">求职意向</label>
                <div class="layui-input-block">
                    <input type="text" name="intention" required lay-verify="required" placeholder="请输入求职意向"
                           autocomplete="off" th:value="${userIn.getIntention()}" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">工作经验</label>
                <div class="layui-input-block">
                    <select name="experience">
                        <option value="0" th:selected="${userIn.getExperience()}">应届生</option>
                        <option value="1" th:selected="${userIn.getExperience()}">1-3年</option>
                        <option value="2" th:selected="${userIn.getExperience()}">3-5年</option>
                        <option value="3" th:selected="${userIn.getExperience()}">5年以上</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">个人优势</label>
                <div class="layui-input-block">
                    <textarea name="advantage" th:value="${userIn.getAdvantage()}" placeholder="请输入个人优势" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">项目经历</label>
                <div class="layui-input-block">
                    <textarea name="project" placeholder="请输入项目经历" th:value="${userIn.getProject()}" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">教育经历</label>
                <div class="layui-input-block">
                    <textarea name="education" placeholder="请输入教育经历" th:value="${userIn.getEducation()}" class="layui-textarea"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">薪资要求</label>
                <div class="layui-input-block">
                    <select name="salary">
                        <option value="0" th:selected="${userIn.getSalary()}">面议</option>
                        <option value="1" th:selected="${userIn.getSalary()}">2-5k</option>
                        <option value="2" th:selected="${userIn.getSalary()}">5-8k</option>
                        <option value="3" th:selected="${userIn.getSalary()}">8-12k</option>
                        <option value="4" th:selected="${userIn.getSalary()}">12k+</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" type="submit">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </div>
    </form>
</div>
<!--主体 end-->
<script type="text/javascript">
    layui.use('form', function () {
        const form = layui.form;
        form.render();
    });
</script>
</body>
</html>